package com.rm.zeyou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rm.zeyou.entity.BrokerConsumeDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 经纪人佣金记录表 Mapper 接口
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:07
 */
@Mapper
public interface BrokerConsumeDetailMapper extends BaseMapper<BrokerConsumeDetail> {

    BigDecimal selectAddAmount(@Param("brokerId") Long brokerId);

    BigDecimal selectPayoutAmount(@Param("brokerId")Long brokerId);

    /**
     *
     * @Date 2025 3月 31 09:48
     * @param brokerId
     * @param number 0=全部  1=今天
     * @return
     */
    Integer selectDealOrderCount(@Param("brokerId")Long brokerId, @Param("number")Integer number);
}
